<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <meta http-equiv="Access-Control-Allow-Headers" content="X-Requested-With" />
    <meta http-equiv="Access-Control-Allow-Methods" content="PUT,POST,GET,DELETE,OPTIONS" />
    <title>答题</title>
    <link rel="stylesheet" href="/static/css/common.css" />
    <link rel="stylesheet" href="/static/css/question.css" />

    <script src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
    <script language="JavaScript" src="/static/js/jquery.form.js"></script>

    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">

    <script language="JavaScript" src="/static/js/flexible_css.js"></script>
    <script language="JavaScript" src="/static/js/flexible.js"></script>

    <link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" media="all">
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script language="JavaScript" src="/static/js/layer.js"></script>
    <script language="JavaScript" src="/static/js/question.js?v=20200403"></script>

</head>
<body>
<div class="page">

    <div class="nav-box">
        <div class="video">
            <video width="100%" height="100%" src="{php}echo $videos[$page-1]['src'];{/php}" autoplay="autoplay" controls="controls" poster=""></video>
        </div>
        <div class="problems">
            <form class="form-horizontal" id="form-horizontal">
                <div class="subject-item">
                    <p class="subject-title"><span>{php}echo $videos[$page-1]['question'];{/php}</span></p>
                    <div class="select-box" data-toggle="buttons">
                        {php}if(!empty($videos[$page-1]['a'])){{/php}
                        <label class="btn btn-default btn-block">
                        <input type="radio" name="options[0]" autocomplete="off" value="1">
                            A.{$videos[$page-1]['a']}
                        </label>
                        {php}}{/php}
                        {php}if(!empty($videos[$page-1]['b'])){{/php}
                        <label class="btn btn-default btn-block">
                            <input type="radio" name="options[0]" autocomplete="off" value="2">
                            B.{$videos[$page-1]['b']}
                        </label>
                        {php}}{/php}

                        {php}if(!empty($videos[$page-1]['c'])){{/php}
                        <label class="btn btn-default btn-block">
                            <input type="radio" name="options[0]" autocomplete="off" value="3">
                            C.{$videos[$page-1]['c']}
                        </label>
                        {php}}{/php}

                        {php}if(!empty($videos[$page-1]['d'])){{/php}
                        <label class="btn btn-default btn-block">
                            <input type="radio" name="options[0]" autocomplete="off" value="4">
                            D.{$videos[$page-1]['d']}
                        </label>
                        {php}}{/php}
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="footer">
        <a href="/{$school.school_abbr}/qt?page={if $page==1}1{else}{$page-1}{/if}" class="prevpage">上一页</a>
        <a href="{if $page < $count}/{$school.school_abbr}/qt?page={$page+1}{else}/{$school.school_abbr}/submit{/if}" class="nextpage forbidden" id="next">{if $page < $count}下一页{else}提交{/if}</a>
    </div>
</div>
</body>
</html>